home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / scope / 101-125 / scopedisk111 / clickdos / clickdos_ii_install < prev    next >
Text File  |  1995-03-19  |  4KB  |  115 lines

  1. ; This script file installs ClickDOS II.
  2. ; It does the following:
  3. ;    Copies ClickDOS II to the utilities directory of your workbench disk
  4. ;      it creates this directory if it does not exist
  5. ;    Copies the Spool program to the directory where C: is assigned
  6. ;    Copies the ClickDOS-Startup file to the directory where S: is assigned
  7. ;    It copies the null-handler to the directory where L: is assigned
  8. ;    It appends to the mountlist and startup-sequence files
  9. ;      it creates these files if they do not exist
  10. ;    It activates the NULL: device
  11.  
  12. ECHO "-- ClickDOS II INSTALL script --*N"
  13. ECHO "Installing ClickDOS II..."
  14. IF NOT EXISTS SYS:Utilities
  15.   ECHO "   Utilities directory does not exist.  Creating..."
  16.   Makedir SYS:Utilities
  17. ENDIF
  18. IF NOT EXISTS SYS:Utilities
  19.   ECHO "      Utilities directory can not be created!!"
  20.   SKIP end
  21. ENDIF
  22. COPY ClickDOS_II:ClickDOS_II TO SYS:Utilities
  23. COPY ClickDOS_II:ClickDOS_II.info TO SYS:Utilities
  24. IF NOT EXISTS SYS:Utilities/ClickDOS_II
  25.   ECHO "   ClickDOS II cannot be copied to Utilities directory!!"
  26.   SKIP end
  27. ENDIF
  28. ECHO "Installing Spool..."
  29. IF NOT EXISTS C:
  30.   ECHO "   C: is not assigned!!  Can't copy Spool program!!"
  31.   SKIP end
  32. ENDIF
  33. COPY ClickDOS_II:Spool TO C:
  34. IF NOT EXISTS C:Spool
  35.   ECHO "   Spool cannot be copied to C: directory!!"
  36.   SKIP end
  37. ENDIF
  38. ECHO "Installing ClickDOS-Startup..."
  39. IF NOT EXISTS S:
  40.   ECHO "   S: is not assigned!!  Can't copy ClickDOS-Startup file!!"
  41.   SKIP end
  42. ENDIF
  43. COPY ClickDOS_II:ClickDOS-Startup TO S:
  44. IF NOT EXISTS S:ClickDOS-Startup
  45.   ECHO "   ClickDOS-Startup cannot be copied to S: directory!!"
  46.   SKIP end
  47. ENDIF
  48. ECHO "Installing null-handler..."
  49. IF NOT EXISTS SYS:l
  50.   ECHO "   SYS:l does not exist.  Creating..."
  51.   MAKEDIR SYS:l
  52. ENDIF
  53. IF NOT EXISTS SYS:l
  54.   ECHO "      SYS:l could not be created!!!"
  55.   SKIP end
  56. ENDIF
  57. COPY ClickDOS_II:l/null-handler TO SYS:l
  58. IF NOT EXISTS SYS:l/null-handler
  59.   ECHO "   null-handler could not be copied to SYS:l!!!"
  60.   SKIP end
  61. ENDIF
  62. ECHO "Appending to MountList..."
  63. IF NOT EXISTS SYS:devs
  64.   ECHO "   SYS:devs does not exist.  Creating..."
  65.   MAKEDIR SYS:devs
  66. ENDIF
  67. IF NOT EXISTS SYS:devs
  68.   ECHO "      SYS:devs could not be created!!!"
  69.   SKIP end
  70. ENDIF
  71. IF NOT EXISTS SYS:devs/MountList
  72.   ECHO "MountList does not exist.  Creating..."
  73.   COPY ClickDOS_II:devs/MountList TO SYS:devs
  74. ELSE
  75.   JOIN SYS:devs/MountList ClickDOS_II:devs/MountList AS SYS:devs/temp.$$$
  76.   IF EXISTS SYS:devs/temp.$$$
  77.     RENAME SYS:devs/MountList TO SYS:devs/OldMountList
  78.     IF EXISTS SYS:devs/OldMountList
  79.       ECHO "Your MountList has been renamed to OldMountList."
  80.       RENAME SYS:devs/temp.$$$ TO SYS:devs/MountList
  81.     ELSE
  82.       ECHO "   Can't rename old MountList"
  83.       SKIP end
  84.     ENDIF
  85.   ELSE
  86.     ECHO "   Can't Append to MountList!!!"
  87.     SKIP end
  88.   ENDIF
  89. ENDIF
  90. ECHO "Appending to Startup-sequence..."
  91. IF NOT EXISTS S:Startup-sequence
  92.   ECHO "Startup-sequence does not exist.  Creating..."
  93.   COPY ClickDOS_II:s/Startup-sequence TO S:
  94. ELSE
  95.   JOIN S:Startup-sequence ClickDOS_II:s/Startup-sequence AS S:temp.$$$
  96.   IF EXISTS S:temp.$$$
  97.     RENAME S:Startup-sequence TO S:OldStartup-sequence
  98.     IF EXISTS S:OldStartup-sequence
  99.       ECHO "Your Startup-sequence has been renamed to OldStartup-sequence."
  100.       RENAME S:temp.$$$ TO S:Startup-sequence
  101.     ELSE
  102.       ECHO "   Can't rename old Startup-sequence"
  103.       SKIP end
  104.     ENDIF
  105.   ELSE
  106.     ECHO "   Can't Append to Startup-sequence!!!"
  107.     SKIP end
  108.   ENDIF
  109. ENDIF
  110. ECHO "Mounting NULL: device..."
  111. MOUNT NULL:
  112. ECHO "Installation Complete."
  113. LAB end
  114. ECHO "(Press CTRL-C to close window)"
  115.